Spread Windows Forms 11.0 Product Documentation
IndexOfKey Method (NamedObjectCollection<T>)


GrapeCity.Win.PluginInputMan Assembly > GrapeCity.Win.Spread.InputMan.CellType Namespace > NamedObjectCollection<T> Class : IndexOfKey Method
The name of the INamedObject object to search for.
Retrieves the index of the first occurrence of the specified item within the collection.
Syntax
'Declaration
 
Public Overridable Function IndexOfKey( _
   ByVal name As String _
) As Integer
'Usage
 
Dim instance As NamedObjectCollection(Of T)
Dim name As String
Dim value As Integer
 
value = instance.IndexOfKey(name)
public virtual int IndexOfKey( 
   string name
)

Parameters

name
The name of the INamedObject object to search for.

Return Value

The zero-based index of the first occurrence of the INamedObject object with the specified name in the collection.
See Also

Reference

NamedObjectCollection<T> Class
NamedObjectCollection<T> Members